const path = require('path');
const Service = require('egg').Service;
const BaseJson = require('ll-data');
const baseDir = path.join(__dirname, './data');

const modelData = new BaseJson({
    jsonFile: 'modelData.json',
    basePath: baseDir
});

class HomeService extends Service {
    async getAll() {
        const res = await modelData.get();

        return res;
    }
}


module.exports = HomeService;